#
# Be sure to run `pod lib lint SQHYBRID.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'SQJVerification'
  s.version          = '0.1.2'
  s.summary          = 'Offically supported JVerification iOS SDK Pod. 官方支持的 SDK.'

# This description is used to genesate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = "JVerification SDK for iOS. \n极光认证整合了三大运营商的号码认证能力，为开发者提供了快速验证用户输入的手机号码和本机SIM卡号码一致性的功能，提高用户体验和安全性"

  s.homepage         = 'http://www.jiguang.cn/'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { '251180323@qq.com' => 'luobo@ibantang.com' }
  s.source           = { :git => 'https://gitee.com/sqkb-ios/SQJVerification.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.ios.deployment_target = '9.0'
  s.requires_arc          = true

  s.source_files = 'JVerification/*.h'
  s.static_framework = true
  
  s.frameworks = "CoreTelephony", "SystemConfiguration","CFNetwork","MobileCoreServices","CoreLocation","Security","AdSupport","AVFoundation","CoreGraphics"
  s.libraries = "sqlite3", "c++.1", "z",'resolv'
  s.ios.vendored_frameworks = "JVerification/*.framework"
  s.ios.vendored_libraries =  "JVerification/*.a"

#  s.ios.dependency 'JCore', '2.4.0'

  if ENV['push'] == "1"
      puts '-----------------------提交本地pod---------------------------------------'
      dev_url = "./"+s.name
      puts Dir.pwd
      system 'git add .'
      system "git commit -m 'pod 提交'"
      system 'git push origin master'
      puts '--------------------------结束-----------------------------------------'
  end

end
